<?php


/**
 * 方法的接口约束
 * @package appApi\method
 */
interface IMethodTcp
{
    public static function tcp_connect(swoole_server $server, $fd, $processId);

    public static function tcp_receive(swoole_server $server, $fd, $processId, $data);

    public static function tcp_close(swoole_server $server, $fd);
}